import request from '@/utils/request'

// 查询分享类别列表
export function listAInfor(query) {
  return request({
    url: '/system/aInfor/list',
    method: 'get',
    params: query
  })
}

// 查询分享类别详细
export function getAInfor(id) {
  return request({
    url: '/system/aInfor/' + id,
    method: 'get'
  })
}

// 新增分享类别
export function addAInfor(data) {
  return request({
    url: '/system/aInfor',
    method: 'post',
    data: data
  })
}

// 修改分享类别
export function updateAInfor(data) {
  return request({
    url: '/system/aInfor',
    method: 'put',
    data: data
  })
}

// 删除分享类别
export function delAInfor(id) {
  return request({
    url: '/system/aInfor/' + id,
    method: 'delete'
  })
}

// 逻辑删除分享类别
export function logicDelAInfor(id) {
  return request({
    url: '/system/aInfor/logicDel/' + id,
    method: 'delete'
  })
}
